#!/bin/bash
#安装部署jenkins

#Jenkins主机安装OpenJDK11环境
yum -y install java-11-openjdk-devel.x86_64

#安装工具相关软件(Git用于拉取代码、postfix用于发邮件)
yum -y install git postfix  

#安装Jenkins
yum -y localinstall PROJECT02/Jenkins/jenkins-2.361.4-1.1.noarch.rpm

systemctl start jenkins.service 
systemctl enable jenkins.service 